package ocr.tess4j;

import java.io.File;

import org.junit.Test;

import net.sourceforge.tess4j.Tesseract;
import net.sourceforge.tess4j.TesseractException;

public class Java_OCR_Test {
	
	@Test
	public void test() throws TesseractException{
		
		String fileName="IMG_2777.jpg";
		File imgFile = new File(fileName);
		Tesseract tesseract = new Tesseract();
		
		String doOCR = tesseract.doOCR(imgFile);
		System.out.println(doOCR);
	}
}
